Skip to content

Conversation

@adrianviquez
Copy link
Contributor

@adrianviquez adrianviquez commented Feb 11, 2026

Only update fields in sync team flow if fields change

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.


Note

Low Risk
Small, localized change to team upsert behavior that only reduces writes; main risk is missed updates if a relevant field comparison behaves unexpectedly (e.g., None vs empty string).

Overview
Team syncing now updates existing Owner team records only when one of username, name, email, avatar_url, or parent_service_id differs from the incoming data, instead of overwriting and bumping updatestamp on every run.

When no fields change, the task skips setting updatestamp and avoids a flush, reducing unnecessary DB writes and churn during sync_teams.

Written by Cursor Bugbot for commit b2dad3b. This will update automatically on new commits. Configure here.

@adrianviquez adrianviquez requested a review from a team February 11, 2026 19:09
@sentry
Copy link

sentry bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (25f7e59) to head (b2dad3b).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #709   +/-   ##
=======================================
  Coverage   92.25%   92.25%           
=======================================
  Files        1302     1302           
  Lines       47852    47854    +2     
  Branches     1628     1628           
=======================================
+ Hits        44147    44149    +2     
  Misses       3396     3396           
  Partials      309      309           
Flag Coverage Δ
workerintegration 58.60% <100.00%> (+<0.01%) ⬆️
workerunit 90.35% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@adrianviquez adrianviquez added this pull request to the merge queue Feb 11, 2026
Merged via the queue into main with commit cf5ee52 Feb 11, 2026
39 of 40 checks passed
@adrianviquez adrianviquez deleted the adrian/sync-teams-only-change-when-needed branch February 11, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants